package com.version1_3.dao;

import java.util.Map;

/**
 * Created by kuibu on 16/1/26.
 */
public interface ShareDao {

    public boolean doRecordPageReaded(int pageId);

    public String getUserInviteCode(int userId);

    public int getUserInvitedFriends(String inviteCode);

    public boolean submitInvite(int userId, String inviteCode);

    public boolean getUserHasInputInviteCode(int userId);

    /**
     * 获取第三方用户信息
     *
     * @param platform
     * @param openid
     * @param token
     * @return
     */
    public Map<String, Object> getThirdPartUserInfoMap(String platform, String os, String openid, String token);
}
